<style>.form-horizontal .form-item{display:inline;} .form-horizontal .item-label{display:inline;}</style>
<form action="{:U('')}" method="POST" class="form-horizontal" style="float:right;">
	<notempty name="searchItems">
	<volist name="searchItems" id="item">
		<div class="form-item">
		    <label class="item-label">{$item[2]}</label></label>                    
			<switch name="item.0">
			    <case value="select">
		           <select name="{$item[1]}">
		           	<option value="0">请选择</option>
		           	<if condition="$item[1] eq 'week_id'">
		           		<php> $weeks = C('WEEKS'); </php>
		           		<assign name="weeks" value="$weeks" />
		           		<volist name="weeks" key='k' id="vo">
			                <option value="{$k}" >{$vo}</option>
			            </volist>
		           	<else/>
			           	<volist name="$item[3]" id="vo">
			                <option value="{$vo.id}" <if condition="I($item[1]) eq $vo['id']">selected="selected"</if> >{$vo.title}</option>
			            </volist>
		           	</if>
		           </select>
			    </case>
			    <case value="input">
			    	<input type="text" class="text input-middle" name="{$item[1]}" value="{:I($item[1])}" />
			    </case>
			</switch>
		</div>
	</volist>
	</notempty>
	
    <!-- <div class="form-item">
        <label class="item-label">所属学校</label></label>                    
           <select name="school_id">
           	<option value="0">请选择</option>
           	<volist name="schoolList" id="vo">
                <option value="{$vo.id}" <if condition="I('school_id') eq $vo['id']">selected="selected"</if> >{$vo.title}</option>
            </volist>
           </select>
    </div>
    
    <div class="form-item">
        <label class="item-label">用户名</label>
           	<input type="text" class="text input-middle" name="username" value="{:I('username')}" />                    
    </div> -->
    
    <div class="form-item">
        <button class="btn" id="" type="submit">确 定</button>
    </div>
</form>